package com.xcenter.cabinet.file.dao;

import java.util.List;

import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.xcenter.cabinet.model.FileModel;

@Mapper
public interface FileDao {
	
	@InsertProvider(type = FileDaoProvider.class, method = "batchInsert")  
    void batchInsert(@Param("list") List<FileModel> models);  
	
	@Select("SELECT * FROM cabinet_file WHERE id = #{ id }")
    FileModel getById(Long id);

}
